<?php
namespace AbstractFactoryPattern;

use AbstractFactoryPattern\Color\RedColor;
use AbstractFactoryPattern\Color\PinkColor;

class ColorFactory extends AbstractFacory {
    
    public function getColor($colorType) {
        if ('pink' == $colorType) {
            return new PinkColor();
        } elseif ('red' == $colorType) {
            return new RedColor();
        } 
        return null;
    }
    
    public function getShape($shapeType) {

        return null;
    
    }

}

